<template>
    <view class="mt80 pd">
        <input type="text" value="" placeholder="请输入群名称" class="jhhgerttyt"  v-model="datas.name"/>
    </view>
</template>
<script>
    export default {
        data() {
            return {
				datas:{
					gid:'',
					name:''
				}
			}
        },
        components: {},
        methods: {
			async dengljse() {
				let cs = {}
				cs.name = this.datas.name
				cs.id = this.datas.gid
				if (!cs.name) {
					uni.showToast({
						title: '请输入群名称'
					});
					return false;
				}
				let jhsd = await this.post("/api/group"  , cs)
				uni.redirectTo({
					url:'GroupMembers?gid='+this.datas.gid
				})
			}
		},
		onNavigationBarButtonTap() {
			
			this.dengljse() 
			
		},
		onLoad(options){
			console.log(options)
			this.datas.gid = options.gid
			this.datas.name = options.name
		},
        mounted() {}
    }

</script>
<style  scoped>
  
</style>
